package de.baumann.browser.utils.web3j;


import android.app.Activity;


import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


public class OdinWallet implements Serializable {

    private static List<Activity> activities = new ArrayList<>();

    public static void addAtivity(Activity activity) {
        activities.add(activity);
    }

    public static void removeActivity(Activity activity) {
        activities.remove(activity);
    }

    public static void removeAllActivity() {
        for (Activity activity : activities) {
            activity.finish();
        }
        activities.clear();
    }
}
